import request from '@/utils/request'

// 水刺产出列表
export const GetListAPI = params => {
  return request({
    url: '/production/spunlaceOutput/list',
    method: 'GET',
    params
  })
}

// 水刺产出查看
export const GetViewAPI = data => {
  return request({
    url: '/production/spunlaceOutput/getView/' + data,
    method: 'GET'
  })
}

// 水刺产出明细列表
export const SpunlaceOutputDetailAPI = params => {
  return request({
    url: '/production/spunlaceOutputDetail/list',
    method: 'GET',
    params
  })
}

// 补打
export const ReprintAPI = data => {
  return request({
    url: '/production/spunlaceOutputDetail/reprint/' + data,
    method: 'GET'
  })
}

// 条码修正
export const DditAPI = data => {
  return request({
    url: '/production/spunlaceOutputDetail/edit',
    method: 'PUT',
    data
  })
}

// 条码修正回显
export const EditViewAPI = data => {
  return request({
    url: '/production/spunlaceOutputDetail/editView/' + data,
    method: 'GET'
  })
}

// 单据完成
export const FinishAPI = data => {
  return request({
    url: '/production/spunlaceOutput/finish',
    method: 'PUT',
    data
  })
}

// 废料打印
export const WastePrintAPI = data => {
  return request({
    url: '/production/spunlaceOutput/wastePrint',
    method: 'POST',
    data
  })
}

// 水刺产出打印
export const AddPrintAPI = data => {
  return request({
    url: '/production/spunlaceOutput/addPrint',
    method: 'POST',
    data
  })
}

// 扫描入库
export const StockInAPI = data => {
  return request({
    url: '/production/spunlaceOutput/stockIn',
    method: 'POST',
    data
  })
}

// 水刺产出回显
export const GetSpunlaceOutputAPI = data => {
  return request({
    url: '/production/spunlaceOutput/view/' + data,
    method: 'GET'
  })
}

// 水刺产出统计
export const GetOutputStaticAPI = params => {
  return request({
    url: '/production/spunlaceOutput/outputStatic',
    method: 'GET',
    params
  })
}
